package com.dao.green.cn.alipay;

import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }


    public void showDialog(){
        AlertDialog.Builder builder = new AlertDialog.Builder(this);
        builder.setMessage("message");
        builder.setTitle("titke");
        builder.setCancelable(true);
        AlertDialog alertDialog = builder.create();
        alertDialog.setContentView(R.layout.activity_main);
    }
}
